package tripx.blog;

import tripx.sql.QueryObject;

public class DbBlog extends QueryObject {

	private int bid;

	public String html; // html content

	public int cid; // city id

	public int uid; // user id

	public String time; // the time when this blog was composed

	public DbBlog(String html, int cid, int uid, String time) {
		this(-1, html, cid, uid, time);
	}

	public DbBlog(int bid, String html, int cid, int uid, String time) {
		this.bid = bid;
		this.html = html;
		this.cid = cid;
		this.uid = uid;
		this.time = time;
	}

	public int getBlogId() {
		return bid;
	}
}
